#include "StdAfx.h"
#include "train.h"

CTrain::CTrain(void)
{
	//py2hz=&
}

CTrain::~CTrain(void)
{
}





void  CTrain::reTrain()
{
	
	str cmd=workPath+_T("\\retrain ")+workPath+_T("\\test\\")+pCrtReg->outWeiZhi()
		+_T(" ")+pCrtReg->outPerson().outName();
	system(cmd.c_str());	
	//all
	 cmd=workPath+_T("\\retrain ")+workPath+_T("\\test\\")+pCrtReg->outWeiZhi()
		+_T(" ")+_T("all");
	system(cmd.c_str());
	//save crt.xml for hmms.

	pCrtReg->setZhuangTai(oldS);
	pCrtReg->clearInBuff();
	pCrtReg->clearMovBuff();
	CCrtXml saveXml;
	saveXml.readFromObj(pCrtReg);
	saveXml.save(workPath+_T("\\test\\")+pCrtReg->outWeiZhi()+ _T("\\crt.xml"));



}
